import { createApp } from 'vue'
import App from '@/App.vue'
// element 全局
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

// svg
import 'virtual:svg-icons-register'

import globalComponents from '@/components/index.ts'

// css
import '@/styles/index.scss'

// router
import router from '@/router/index.ts'

import pinia from '@/store/index.ts'

const app = createApp(App)

console.log('env:', import.meta.env)

app.use(globalComponents)
app.use(router)
app.use(pinia)
app.use(ElementPlus, { size: 'default', zIndex: 3000, locale: zhCn })
app.mount('#app')
